package com.bilibili.service.impl;

import java.util.List;

import com.bilibili.dao.LikeSelectVideoDao;
import com.bilibili.dao.impl.LikeSelectVideoDaoImpl;
import com.bilibili.entity.Page;
import com.bilibili.entity.Video;
import com.bilibili.service.LikeSelectVideoService;

public class LikeSelectVideoServiceImpl implements LikeSelectVideoService {
	
	private LikeSelectVideoDao lsv=new LikeSelectVideoDaoImpl();
	@Override
	public Page<Video> getLikeSelectVideo(String likeName,int pageNum,int pageSize) {
		// TODO Auto-generated method stub
		List<Video> videos=lsv.selectVideo(likeName,pageNum,pageSize);
		int rows=lsv.selectVideoNums(likeName);
		Page<Video> bookPage=new Page<Video>(videos,pageNum,pageSize,rows);
		return bookPage;
	}

}
